package cn.iocoder.yudao.module.jifenyuan.api.wallet;

import cn.iocoder.yudao.module.jifenyuan.api.wallet.dto.WalletRespDto;
import cn.iocoder.yudao.module.jifenyuan.enums.JifenyuanWalletLogChangeTypeEnum;

public interface WalletApi {


    boolean createWallet(Long userId,Long defaultCoin);

    WalletRespDto getWalletByUserId(Long userId);

    /**
     *
     * @param userId
     * @param coin
     * @param type see{@link JifenyuanWalletLogChangeTypeEnum}
     * @return
     */
    boolean changeWallerCoin(Long userId, Long coin, Integer type,String remark);
}
